package operation.action;

import operation.action.Goods_Operation;
import uesr.Goods;

import java.util.LinkedList;

public class SelectGoods implements Goods_Operation {
    @Override
    public void work(LinkedList<Goods> goods) {
        Goods[] tmp = (Goods[]) goods.toArray();
        for (int i = 0; i < goods.size(); i++) {
            System.out.println(tmp[i].name + tmp[i].price + tmp[i].count) ;
        }
    }
}
